<template>
	<view>
		<dsl-navbar title="联通" bgTopImg="white" isBack right1='/static/chat/imgjiahaoyou-1.png'
			right2='/static/chat/shenglue.png' @right1Men='right1Men' @right2Men='right2Men'></dsl-navbar>
		<view class="chat_top align-center rowsc ">
			<text>以为你设置防骚扰，对方须支付2钻石/条消息</text>
			<image src="/static/chat/imgchahao-1.png" mode="" style="width: 30rpx;height: 30rpx; margin-left: 50rpx;">
			</image>
		</view>
		<view class="text-center text-sm" style="color: #B7BED8;">
			08-26 15：27
		</view>

		<view class="flex margin-left">
			<image src="/static/user/userImg.png" mode="" class="user_image"></image>
			<view class="chat_left">
				平台倡导绿色聊天，严禁色情暴力，低俗不良的聊天行为将被禁止；
				自动屏蔽敏感信息和数字（微信号、QQ号等...）
			</view>
		</view>
		<view class="flex margin-right justify-end">
			<view class="chat_right">
				你好，可以和你聊聊吗？看你照片很漂亮~
			</view>
			<image src="/static/user/userImg.png" mode="" class="user_image"></image>
		</view>
		<view class="fixed" style="bottom: 0;">
			<view class="message align-center">
				<view class=" flex">
					<view style="width: 100rpx;">
						<image src="/static/chat/imgxiaoxi-5.png" mode="" style="width: 30rpx;height: 30rpx;"
							class="margin-left-xs "></image>
					</view>
					<view class="">
						平台倡导绿色聊天，严禁色情暴力，低俗不良的聊天行为将被禁止；
						自动屏蔽敏感信息和数字（微信号、QQ号等...）
					</view>
				</view>
			</view>
			<view class="chat_input align-center padding-lr justify-between">
				<input type="text" value="" placeholder="请输入内容..." placeholder-style="color:#B7BED8"
					style="width: 500rpx;" />
				<image src="/static/chat/kefu_jianghua-4.png" mode="" style="width: 70rpx;height: 70rpx;"></image>
			</view>
			<view class="padding bg-white align-center justify-between margin-top">
				<view v-for="(item,index) in list" :key="index">
					<image :src="item" mode="" class="message_icon"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					'/static/chat/imgxiangji-1.png',
					'/static/chat/imgxiangce.png',
					'/static/chat/imgliwu.png',
					'/static/chat/imgxiangji-4.png',
					'/static/chat/imglian.png'
				]
			}
		},
		//生命周期函数
		onReady() {},
		onLoad() {},
		onShow() {},
		methods: {
			//添加好友
			right1Men(){
				
			},
			
			//顶部更多功能
			right2Men() {
				uni.showActionSheet({
					itemList: ['查看个人主页', '举报', '拉黑', '清空聊天记录'],
					success: function(res) {
						if (res.tapIndex == 0) {
							uni.navigateTo({
								url:'/pages/userInfo/modules/userInfo'
							})
						} else if (res.tapIndex == 1) {

						} else if (res.tapIndex == 2) {
							
						} else if (res.tapIndex == 3) {

						} else if (res.tapIndex == 4) {

						}
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},

		},
		computed: {},
		components: {}
	}
</script>

<style lang="scss">
	page {
		background-color: #F7F6FA;
	}

	.chat_top {
		width: 690rpx;
		height: 63rpx;
		background: #F8EDD6;
		border-radius: 8px;
		margin: 0 auto;
		color: #C87910;
		line-height: 63rpx;
		text-align: center;
		margin: 30rpx;
	}

	.user_image {
		width: 88rpx;
		height: 88rpx;
		border-radius: 50%;
		opacity: 1;
	}

	// 左侧聊天
	.chat_left {
		width: 450rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 20rpx;
		padding: 20rpx;
		word-break: break-all;
		margin-top: 50rpx;
	}

	//右侧聊天
	.chat_right {
		width: 450rpx;
		background: #EAA019;
		opacity: 1;
		border-radius: 20rpx;
		padding: 20rpx;
		word-break: break-all;
		margin-top: 50rpx;
		color: white;
	}

	.message {
		width: 690rpx;
		height: 106rpx;
		background: #F8EDD6;
		border-radius: 8rpx;
		font-size: 20rpx;
		display: flex;
		color: #C87910;
		margin: 0 auto;

	}

	.chat_input {
		width: 700rpx;
		height: 90rpx;
		background: #FFFFFF;
		box-shadow: 0px 6rpx 17rpx rgba(223, 223, 223, 0.32);
		opacity: 1;
		border-radius: 45rpx;
		margin: 0 auto;
		margin-top: 20rpx;
	}

	//底部功能图标
	.message_icon {
		height: 44rpx;
		width: 44rpx;
	}
</style>

